import {MessageBlock} from "./MessageBlock.js"

let test1 = MessageBlock(document.querySelector(".messageBlock"));

var infList = [
    "https://www.bilibili.com",
    "./test.png",
    "New",
    "Transforming a house",
    "Benjamin Booker",
]

test1.setHref(infList[0]);
test1.setImg(infList[1]);
test1.setLabelTime(infList[2]);
test1.setLabelTitle(infList[3]);
test1.setLabelFrom(infList[4]);

test1.setSize(1);
window.addEventListener("resize", () => {
    test1.setSize(1);
})